package com.controllers
{
	import com.views.GameView;
	import com.views.View;
	
	public class GameController extends Controller
	{
		private var _playerLayerController:GamePlayLayerController;
		private var _uiLayerController:GameUILayerController;
		private var _randomLayerController:GameRandomLayerController
		
//		private var _view:GameView;
		public function GameController()
		{
			super();
		}
		
		override public function initController(target:View):void{
			super.initController(target);
			_view = target as GameView;
		}
		
		public function get playerLayerController():GamePlayLayerController{
			if(!_playerLayerController)_playerLayerController = new GamePlayLayerController(_view as GameView);
			return _playerLayerController
		}
		public function get uiLayerController():GameUILayerController{
			if(!_uiLayerController)_uiLayerController = new GameUILayerController(_view as GameView);
			return _uiLayerController;
		}
		public function get randomLayerController():GameRandomLayerController{
			if(!_randomLayerController)_randomLayerController = new GameRandomLayerController(_view as GameView);
			return _randomLayerController;
		}
		
		
	}
}